#ifndef ENTITY_H
#define ENTITY_H

#include "Vec2d.h"

/**
 * The Entity class defines an object that has
 * certain physical properties that can be manipulated 
 * by the Physics engine. Most game objects will inherit
 * the Entity class.
 */
class Entity
{
private:
	float mass;
	float invMass;
	
public:
	Vec2d pos;
	Vec2d vel;
	Vec2d accel;
	
	Entity();
	Entity(Vec2d pos);
	Entity(Vec2d pos, Vec2d vel, Vec2d accel);
	Entity(Vec2d pos, Vec2d vel, Vec2d accel, float mass);
	void update();
	void update(int timestep);
	void setMass(float mass);
	float getMass();
	float getInvMass();
};

#endif